﻿using Furion.CMS.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 操作日志
    /// </summary>
    public class OperateLogDto
    {
        public OperateLogDto()
        {
            RowContent = new DbAuditContent[0];
        }

        /// <summary>
        /// 数据id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 应用名称
        /// </summary>
        public string AppName { get; set; }
        /// <summary>
        /// 操作方式
        /// </summary>
        public string Operate { get; set; }
        /// <summary>
        /// 行关键字
        /// </summary>
        public string RowKey { get; set; }
        /// <summary>
        /// 行内容
        /// </summary>
        public DbAuditContent[] RowContent { get; set; }
        /// <summary>
        /// 操作用户
        /// </summary>
        public string User { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string IPAddress { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTimeOffset CreatedTime { get; set; }
    }
}
